#if !ANIMAL_H
#define ANIMAL_H 1

#define ANIMAL_SPEED				(1.0f)
#define ANIMAL_PREPARING_TIME		500
#define ANIMAL_DEFAULT_TIME_SPAWN	5

#define ANIMAL_STATE_DIE			0
#define ANIMAL_STATE_MOVE			1

class CAnimal{

	float _speed;
	float _targetX;
	float _targetY;
	float _baseX;
	float _baseY;
	int _id;
	int _type;
	int _state;

	float _last_time_spawn;

public:
	CAnimal(){_state = ANIMAL_STATE_DIE;}
	void Init(int id, int type, float baseX, float baseY);
	void Update();
	void Render();
	bool MoveTo(float targetX, float targetY);
	bool IsDie(){return _state == ANIMAL_STATE_DIE;};
	void SetDie(){_state = ANIMAL_STATE_DIE;};
};
#endif